-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Creating ZIP archives with no file extension #21694
Fix: Creating ZIP archives with no file extension #21694
Conversation
P.S. Any advice on the failing "Ensure PR has release notes (pull_request)" check?
|
Looks good. I've marked this bugfix for backporting To satisfy the "Ensure PR has release notes" check, you'd need to add a changelog to "docs/notes/2.25.x.md". Probably under the "General" heading. |
3df6f61
to
a49038d
Compare
Bump ^^ |
Sorry for the delay! Looks good. I wanted to confirm that this wouldn't alter anything for zipfiles with extensions. It would be a shame if we broke reproduceable builds or worse. I can confirm that zipfiles produced with
I also checked that most major distros packaged a zip that has this option. Debian, Arch, and Alpine all bundle Info-Zip's implementation, which supports this option. Busybox does not implement zip so we don't have to worry about that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
) (#21705) This fixes #21693 There are a number of changes involved: * Add a `--adjust-sfx` command-line flag when invoking the `zip` binary -- the actual fix for the bug * Modify the `test_create_zip_archive` unit test: * Parametrize it for multiple test scenarios * Modify the last section, as it was failing for anything but `.zip` extensions * **Note**: This is a best-effort change that I'm not super confident in. There may be better or more canonical ways to do this * Remove the unsed `ZipBinary.create_archive_argv` method Co-authored-by: Dimitar Kovachev <[email protected]> Co-authored-by: cburroughs <[email protected]>
) (#21706) This fixes #21693 There are a number of changes involved: * Add a `--adjust-sfx` command-line flag when invoking the `zip` binary -- the actual fix for the bug * Modify the `test_create_zip_archive` unit test: * Parametrize it for multiple test scenarios * Modify the last section, as it was failing for anything but `.zip` extensions * **Note**: This is a best-effort change that I'm not super confident in. There may be better or more canonical ways to do this * Remove the unsed `ZipBinary.create_archive_argv` method Co-authored-by: Dimitar Kovachev <[email protected]> Co-authored-by: Huon Wilson <[email protected]>
This fixes #21693
There are a number of changes involved:
--adjust-sfx
command-line flag when invoking thezip
binary -- the actual fix for the bugtest_create_zip_archive
unit test:.zip
extensionsZipBinary.create_archive_argv
method